package com.yanti.controller;

import com.yanti.domain.ResponseResult;
import com.yanti.service.UserWrongQuestionsService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wrongQuestion")
public class UserWrongQuestionsController {

    @Resource
    private UserWrongQuestionsService userWrongQuestionsService;

    @GetMapping("")
    public ResponseResult<?> getUserWrongQuestion(){
        return userWrongQuestionsService.getUserWrongQuestion();
    }

    @GetMapping("/wrongQuestionAnalysis")
    public ResponseResult<?> getUserUserWrongQuestionAnalysis(){
        return userWrongQuestionsService.getUserUserWrongQuestionByQuestionId();
    }
}
